home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / dev / amos / AMOS1097.lzh / AMOSLIST / 000170_amos-request@svcs1.digex.net_Thu Oct 16 18:43:07 1997.msg < prev    next >
Internet Message Format  |  1997-11-02  |  4KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id SAA29239
  3.     for <mcox@access.digex.net>; Thu, 16 Oct 1997 18:43:06 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id OAA16691
  6.     for amos-out; Thu, 16 Oct 1997 14:58:51 -0400 (EDT)
  7. Received: from mail3.access.digex.net (mail3.access.digex.net [205.197.247.4])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id OAA16688
  9.     for <amos-list@svcs1.digex.net>; Thu, 16 Oct 1997 14:58:50 -0400 (EDT)
  10. Received: from relay2.inet.tele.dk (relay2.inet.tele.dk [194.182.149.120])
  11.     by mail3.access.digex.net (8.8.5/8.8.5) with SMTP id OAA29697
  12.     for <amos-list@access.digex.net>; Thu, 16 Oct 1997 14:58:45 -0400 (EDT)
  13. Received: (qmail 34922 invoked from network); 16 Oct 1997 18:58:29 -0000
  14. Received: from post8.tele.dk (194.239.134.172)
  15.   by relay2.inet.tele.dk with SMTP; 16 Oct 1997 18:58:29 -0000
  16. Received: from post8.tele.dk ([194.239.180.44]) by post8.tele.dk
  17.           (Netscape Mail Server v2.02) with SMTP id AAA45456;
  18.           Thu, 16 Oct 1997 20:58:26 +0200
  19. From: Jens Vang Petersen <top_cat@post8.tele.dk>
  20. To: Declan_Gorman@modusmedia.com
  21. CC: amos-list@access.digex.net
  22. Date: Thu, 16 Oct 1997 20:58:14 +0100
  23. Message-ID: <yam7228.717.1748273928@post8.tele.dk>
  24. In-Reply-To: <0002EFFE.@modusmedia.com>
  25. X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
  26. Subject: Re: Problem Copying Memory Blocks
  27. MIME-Version: 1.0
  28. Content-Type: text/plain
  29. Status: O
  30. X-Status: 
  31.  
  32. On 16-Okt-97, Declan_Gorman@modusmedia.com smashed the keyboard with:
  33. >     
  34. >     I will try to explain this the best I can so bear with me
  35. >     
  36. >     I am trying to copy a memory block of 256 bytes from one address to 
  37. >     another using the following line of code which is causing my system to 
  38. >     crash.
  39. >     
  40. >     Copy Start(SBNK)+Val(SVCE$(SMZ)),Start(SBNK)+Val(SVCE$(SMZ))+256 to 
  41. >     Start(20)
  42. >     
  43. >     where SBNK is either 10 or 11 and SMZ ranges from 1 to 128
  44. >     
  45. >     At one stage when I ran the program where SBNK is 10 and SMZ is 1 I 
  46. >     got the following values
  47. >     
  48. >     Copy 1225400,1225656 to Start(20)
  49. >     
  50. >     The same line of code in direct mode does not crash and works fine but 
  51. >     when run through my program it crashes.
  52. >     
  53. >     I went stepped through everything to verify that I was getting valid 
  54. >     values for both SBNK and SMZ and every time they were valid.
  55. >     
  56.  
  57. Uhh, this is a bit of a long-shot, but try to calculate the val's outside
  58. of the command.. (something like: wa=val(svce$(n)) and then use the variable
  59. in the copy command, don't know why it happens, but by putting a break down
  60. after the 'val' you can at least see what part goes wrong (I'm suspecting 
  61. the VAL very much as the Copy command never gives me any problems at all).
  62.  
  63. Here's a few check-points for your help, but you proberly know them..
  64.  
  65. .. 'Copy' MUST use EVEN adresses, be very sure about this !!!
  66. .. 'VAL' sometimes screws up when encountering strange char's, so make sure
  67.    that the string starts right out with a valid number. Also be sure that
  68.    the number is terminated by either a 'normal' char (A-Z,a-z) or space or
  69.    the end of the string..
  70. .. Have you tried to enter the numbers directly in the copy command ??
  71.  
  72. NB: The EVEN adresses on Copy should only apply to 68000->68020 CPU's, 
  73.     newer ones SHOULD be able to cope with uneven (Havn't tried it)..
  74.  
  75. -- 
  76. Happy greetings, Yours..
  77. __________________________________________________________________________
  78.  /_  __/ __  / __  /\  ___\  __ \__  _\           aka. JENS VANG PETERSEN
  79.   / / / /_/ / ____/  \ \___\  __ \ \ \  Nyvej 8, DK-4450 Jyderup, Denmark
  80.  /_/ /_____/_/        \_____\_\ \_\ \_\             top_cat@post8.tele.dk
  81. --------------------------------------------------------------------------
  82.  Never forget the 'Queen Of Hearts', Diana, Princess Of Wales, 1961->1997
  83. --------------------------------------------------------------------------
  84.